package test;

public class Courses {
    private String courseId;
    private String courseName;
    private String teacher;

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }
    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }
    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public String getCourseId() {
        return courseId;
    }
    public String getCourseName() {
        return courseName;
    }
    public String getTeacher() {
        return teacher;
    }

    public Courses(String courseId,String courseName,String teacher){
        this.courseId=courseId;
        this.courseName=courseName;
        this.teacher=teacher;
    }

    public void showInfo(){
        System.out.println("课程编号："+this.getCourseId());
        System.out.println("课程名称："+this.getCourseName());
        System.out.println("任课教师："+this.getTeacher());
    }
}
